<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ledger-add">
			<div class="form-group">	
				<label class="col-sm-3 control-label">时间：</label>
				<div class="col-sm-8">
					<input id="ledgerTime" name="ledgerTime" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">摘要：</label>
				<div class="col-sm-8">
					<input id="ledgerRemake" name="ledgerRemake" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">借记：</label>
				<div class="col-sm-8">
					<input id="ledgerDebit" name="ledgerDebit" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">贷记：</label>
				<div class="col-sm-8">
					<input id="ledgerRedit" name="ledgerRedit" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">总额：</label>
				<div class="col-sm-8">
					<input id="ledgerBalance" name="ledgerBalance" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">类型：</label>
				<div class="col-sm-8">
					<input id="ledgerType" name="ledgerType" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">关联企业：</label>
				<div class="col-sm-8">
					<input id="ledgerTaxpayer" name="ledgerTaxpayer" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件地址：</label>
				<div class="col-sm-8">
					<input id="ledgerPath" name="ledgerPath" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ledger"
		$("#form-ledger-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-ledger-add').serialize());
	        }
	    }
	</script>
</body>
</html>
